<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<style>
  .container {
    display: flex;
    height: 600px;
    background-color: rgb(219, 219, 219);
  }

  .container {
    flex-wrap: nowrap;
    /* 不换号也不压缩宽度 */
    /* flex-wrap: wrap;   换行1,2,3    4,5 */
    /* flex-wrap: wrap-reverse;  反向换行 4,5     1,2,3 */
  }

  .item {
    padding: 100px;
  }
</style>

<body>
  <div class="container">
    <div class="item" style="background-color: antiquewhite;">1</div>
    <div class="item" style="background-color: aqua;">2</div>
    <div class="item" style="background-color: aquamarine;">3</div>
    <div class="item" style="background-color: #aaff00;">4</div>
    <div class="item" style="background-color: #ffff00;">5</div>
  </div>
</body>

</html>